#define _CRT_SECURE_NO_WARNINGS 1
#pragma warning(disable:6031)

#include<stdio.h>


int main() {
    float kg = 0;
    char flg = 0;
    int money = 20;
    scanf("%f %c", &kg, &flg);
    money += ((int)(kg - 1) > 0 ? (int)(kg - 1) : 0) + ((kg - (int)kg) > 0 ? 1 : 0);
    if (flg == 'y')
        money += 5;

    printf("%d", money);

    return 0;
}